import defaultSettings from '@/settings';
import { useSettingsStore } from '@/store/modules/settings';

/**
 * 动态修改标题
 */
export const useDynamicTitle = (value: string) => {
  // const settingsStore = useSettingsStore();
  document.title = value;
  // if (settingsStore.dynamicTitle) {
  //   document.title = settingsStore.title + ' - ' + import.meta.env.VITE_APP_TITLE;
  // } else {
  //   document.title = defaultSettings.title as string;
  // }
};
